{% extends "BackendBundle::backend.html.twig" %}

{% set vars = {'ruta' : app.request.attributes.get('_route')} %}

{% block header %}

    {% include "BackendBundle::topmenu.html.twig" with vars %}

{% endblock %}

{% block left %}

    {% include "ContentBundle:Hotel:menuleft.html.twig" with vars %}

{% endblock %}

{% block content %}

    <div class="span9">
    
        <h2>{{ "Contenido"|trans }}</h2>

        <fieldset>
            <legend>{{hotel.hotelname}}</legend>
            
            {% if app.session.hasFlash('success') %}
                <div class="flash-notice alert alert-success">
                    <h4 class="alert-heading">{{ "Ok"|trans }}!</h4>                     
                    {{ app.session.flash('success') }}
                </div>
            {% endif %}

            {% if app.session.hasFlash('error') %}
                <div class="flash-notice alert alert-error">
                    <h4 class="alert-heading">{{ "Error"|trans }}!</h4>                        
                    {{ app.session.flash('error') }}
                </div>
            {% endif %}

            {% if app.session.hasFlash('info') %}
                <div class="flash-notice alert alert-info">
                    <h4 class="alert-heading">{{ "Info"|trans }}!</h4>
                    <p>{{ app.session.flash('info') }}</p>
                </div>
            {% endif %} 
            
            <div class="flash-notice alert alert-info">
                <h4 class="alert-heading">Info!</h4>
                <p>Los contenidos, siempre seran entrados por defecto en <b>Español</b>.</p>
            </div>
            
            <p>
                Aqui farem un resum de les sessions que te i els articles que te, i podriem posar ultimos articulos añadidos, ja es veura...
            </p>
            
        </fieldset>
        
    </div>

{% endblock %}
